home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / dviware / beebe / updates / 00mail.1 < prev    next >
Text File  |  1990-10-01  |  4KB  |  118 lines

  1. 18-Feb-87 09:36:05-MST,4267;000000000001
  2. Mail-From: BEEBE created at 18-Feb-87 09:36:02
  3. Date: Wed 18 Feb 87 09:36:01-MST
  4. From: "Nelson H.F. Beebe" <Beebe@UTAH-SCIENCE.ARPA>
  5. Subject: DVI driver family update #1
  6. To: $90%dhdurz1.bitnet@WISCVM.WISC.EDU, austins%ucbcmsa.edu@UTAH-CS.ARPA,
  7.     cel%cithex.caltech.edu@UTAH-CS.ARPA,
  8.     crawford-j%ohio_state.arpa@UTAH-CS.ARPA,
  9.     crm8701%tamvenus.bitnet@WISCVM.WISC.EDU,
  10.     gaspard%hroeur5.bitnet@WISCVM.WISC.EDU,
  11.     james%vaxe.coe.northeaster.edu@UTAH-CS.ARPA,
  12.     lamy%ai.toronto.edu@RELAY.CS.NET, mpc91b%dgogwd01.bitnet@WISCVM.WISC.EDU,
  13.     rjones%uwovax.bitnet@WISCVM.WISC.EDU, rs%gnome.cs.cmu.edu@UTAH-CS.ARPA,
  14.     stone%ruthep.rutgers.edu@UTAH-CS.ARPA,
  15.     system%uvphys.bitnet@WISCVM.WISC.EDU, thobe@EE.UCLA.EDU,
  16.     zeffi%finabo.bitnet@WISCVM.WISC.EDU
  17. cc: BEEBE@UTAH-SCIENCE.ARPA
  18. X-US-Mail: "Center for Scientific Computation, South Physics, University of Utah, Salt Lake City, UT 84112"
  19. X-Telephone: (801) 581-5254
  20. Message-ID: <12280054855.6.BEEBE@UTAH-SCIENCE.ARPA>
  21.  
  22. For those of you who supplied  an EMAIL address, I have  set
  23. up a mailing list which I will use to announce changes in my
  24. DVI driver family.  All tapes  and floppy disks received  as
  25. of 18-Feb-87 have now been shipped.
  26.  
  27. Since the  TeXHaX  announcement, ANONYMOUS  FTP  access  for
  28. Internet sites has become available.  To use it, login  with
  29. ANONYMOUS FTP to UTAH-SCIENCE and get the file 00README.TXT.
  30. It contains information on how to find things.
  31.  
  32. Here is part of the 00REVHST.TXT file:
  33.  
  34. -----------------------------------------------------------------
  35. [10-Feb-87]
  36.         Yesterday I discovered that  VAX VMS 4.4 printf()
  37.         wipes out the stack and  kills  the  process if a
  38.         long string is printed.  This turns out to be the
  39.         case in outline() in dvitos.c; the code has  been
  40.         modified to use fputs() there instead.
  41.  
  42. [10-Feb-87]
  43.         Several debugging sessions  on VAX  VMS  stepping
  44.         through  the call chain fflush()  -> _flsbuf() ->
  45.         _flsbuf_record()      ->    write_record()     ->
  46.         write_buffer() -> write_imbed() -> write_output()
  47.         ->signal()  -> c$$translate() have  made it clear
  48.         that the simple scheme in dvi*.c  and lptops.c of
  49.         checking  for  a   non-zero   return value   from
  50.         fflush() or  ferror() is  an unreliable  way   to
  51.         conclude  a legitimate  error (specifically, disk
  52.         storage   exhausted) exists.  Consequently, these
  53.         routines have been modified to call clearerr() at
  54.         the beginning of  loadchar() and prtbmap(),  then
  55.         to  use a macro DISKFULL()  to test for the error
  56.         condition.   DISKFULL() is defined in machdefs.h,
  57.         and errno.h is  now included  by dvihead.h.  This
  58.         regrettably introduces  small changes in a number
  59.         of routines, but no other  clean way of doing the
  60.         job appeared to be feasible.
  61.  
  62. [02-Feb-87]
  63.         Changed "pagecollation on" to "pagecollation off"
  64.         in dviimp.c.   With  version 3.3  of  the  Imagen
  65.         Image Processor software, there seems to be a bug
  66.         in that "pagecollation on" causes page  reversal.
  67.         I have reported this to Imagen.
  68.  
  69. -----------------------------------------------------------------
  70.  
  71. Here are Unix diff output  listings for the affected  files.
  72. All the dvi*.c routines have similar changes; the two listed
  73. here are typical.
  74.  
  75. machdefs.h:
  76. 113a114
  77. > #define DISKFULL(fp)    (ferror(fp) && (errno == ENOSPC))
  78. 337a339
  79. > #define DISKFULL(fp)    ferror(fp)    /* PCC-20 does not always set errno */
  80.  
  81. dvialw.c:
  82. 566a567,568
  83. >     clearerr(plotfp);        /* VMS sets the error flag unexpectedly */
  84. >
  85. 583c585,586
  86. <     if (ferror(plotfp) != 0)
  87. ---
  88. >
  89. >     if (DISKFULL(plotfp))
  90.  
  91.  
  92. dvitos.c:
  93. 104c104
  94. < #define OUTFILE_EXT    ".tos"
  95. ---
  96. > #define OUTFILE_EXT    ".dvi-tos"
  97. 333,335c333,337
  98. <     (void)fprintf(plotfp,"\033;%04d%s",
  99. <         len >> 2,pline);        /* quadruple count ESC;nnnn */
  100. <
  101. ---
  102. >     {
  103. >     (void)fprintf(plotfp,
  104. >         "\033;%04d",len >> 2);    /* quadruple count ESC;nnnn */
  105. >     (void)fputs(pline,plotfp);
  106. >     }
  107. 362a365,366
  108. >     (void)clearerr(plotfp);
  109. >
  110. 486,487c490,492
  111. <     if (fflush(plotfp) == EOF)
  112. <     (void)fatal("Output error -- disk storage probably full");
  113. ---
  114. >     (void)fflush(plotfp);
  115. >     if (DISKFULL(plotfp))
  116. >     (void)fatal("prtbmap(): Output error -- disk storage probably full");
  117. -------
  118.